package net.wangds.auth.user.repo.rdbms;

import net.wangds.auth.module.UserValidateStatusEnum;
import net.wangds.auth.user.entity.EmailUserEntity;
import net.wangds.auth.user.entity.SmsUserEntity;
import org.springframework.stereotype.Repository;

@Repository
public interface SmsUserJpaRepo extends AbstractAccountRefRepo<SmsUserEntity> {

    EmailUserEntity findByAccountIdAndMobile(String accountId, String mobile);

    boolean existsByMobileAndValidateStatus(String mobile, UserValidateStatusEnum status);

    boolean existsByMobile(String mobile);
    
}
